//
//  YZMyStocksService.h
//  YZMicroStock
//
//  Created by wangminhong on 16/4/11.
//  Copyright © 2016年 cqjr. All rights reserved.
//

#import <Foundation/Foundation.h>

@class YZMStockInfo;
@class YZMSavedStock;

@interface YZMyStocksService : NSObject

+ (instancetype)sharedService;
- (NSArray *)stocks;

- (BOOL)isStockExist: (NSString *)stockID;

- (BOOL)operationStock:(YZMStockInfo *)stock withAddFlag:(BOOL)addFlag;
- (BOOL)addStockWithCode:(NSString *)code andName:(NSString *)name;

- (BOOL)topStockWithCode:(NSString *)code;
- (BOOL)removeStockWithCode:(NSString *)code;
- (void)removeSavedStocksWithCodeList:(NSSet *)codeList;
- (void)exchangeStockAtIndex:(NSInteger)atIndex toIndex:(NSInteger)toIndex;

@end
